package projectwork.shchuangge.cn.com.newproject.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import projectwork.shchuangge.cn.com.newproject.R;

/**
 * Created by 赵航 on 2017/6/20.
 */

public class ShoppingAdapter extends RecyclerView.Adapter {

    private  TextView prices;
    private ImageView mImageView;
    private  TextView mName;

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = View.inflate(parent.getContext(), R.layout.shopping_item_item, null);
        return new ShoppingHolder(view);
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 10;
    }
    public class ShoppingHolder extends RecyclerView.ViewHolder{

        public ShoppingHolder(View itemView) {
            super(itemView);
            mImageView = (ImageView) itemView.findViewById(R.id.price_item_shown_image);
            mName = (TextView) itemView.findViewById(R.id.price_item_name);
            prices = (TextView) itemView.findViewById(R.id.price_item_price);
        }
    }

}
